/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pentofab.payrollmanagement.dao.model;


import java.util.ArrayList;

/**
 * 
 * @author Santu
 */
public class AttendanceDetail {

	private String RowNo;
	private String Date;
	private String InTime;
	private String LogOutTime;
	private String Comments;

	public static ArrayList<AttendanceDetail> getAttandanceDetailList(ArrayList<Attendance> attandanceList) {
		
		ArrayList<AttendanceDetail> detail = new ArrayList<AttendanceDetail>();
		for (int i = 0; i < attandanceList.size(); i++) {
			Attendance cur = attandanceList.get(i);
			detail.add(new AttendanceDetail(cur.getRownumber() + "", cur
					.getDate(), cur.getLoginTime(), cur.getLogoutTime(), cur
					.getComments()));
		}

		return detail;

	}

	public void setRowNo(String RowNo) {
		this.RowNo = RowNo;
	}

	public void setDate(String Date) {
		this.Date = Date;
	}

	public void setInTime(String InTime) {
		this.InTime = InTime;
	}

	public void setLogOutTime(String OutTIme) {
		this.LogOutTime = OutTIme;
	}

	public void setComments(String Comments) {
		this.Comments = Comments;
	}

	public String getRowNo() {
		return RowNo;
	}

	public String getDate() {
		return Date;
	}

	public String getInTime() {
		return InTime;
	}

	public String getLogOutTime() {
		return LogOutTime;
	}

	public String getComments() {
		return Comments;
	}

	public AttendanceDetail(String RowNo, String Date, String InTime,
			String OutTIme, String Comments) {
		this.RowNo = new String(RowNo);
		this.Date = new String(Date);
		this.InTime = new String(InTime);
		this.LogOutTime = new String(OutTIme);
		this.Comments = new String(Comments);
	}

	@Override
	public String toString() {
		return "AttandanceDetail{" + "RowNo=" + RowNo + ", Date=" + Date
				+ ", InTime=" + InTime + ", LogOutTime=" + LogOutTime
				+ ", Comments=" + Comments + '}';
	}

}
